POV-Ray : Newsgroups : povray.general : Calling external Math functions from .dll or .so : Re: Calling external Math functions from .dll or .so Server Time
2 Aug 2024 14:17:15 EDT (-0400)
  Re: Calling external Math functions from .dll or .so  
From: ABX
Date: 14 Feb 2005 11:12:44
Message: <b2j111hi00tsaasge9sjhf0vqrqbmf9nho@4ax.com>
On 12 Feb 2005 01:51:48 -0500, "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote:
> Now extent macro language. Would it be very hard to implement minimalistic 
> C-like language interpreter? Then, on some platforms such funcitons could 
> be compiled using gcc before rendering to speed it up (someone done this 
> patch already, AFAIK it was mostnly for isosurfaces on Linux?). On other 
> platforms - it would be interpreted.

... which is exactly functions which are compiled to machine code on some Macs
and compiled to virtual machine on other platform. Moreover examples you gave
already are "possible"

> #function Vector3 ShootRay(float x, float y) { 

see user-defined camera in MegaPOV which allow sending rays in any direction.

> #funcion Color Pigment1(float x, float y, float z) {

see images like
http://news.povray.org/povray.binaries.images/attachment/%3C39e71e97%40news.povray.org%3E/escher4.jpg
which are completly procedural

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.